function getIp() {
//	return "http://www.wkdzkj.cn/zuul/woke-plugin";
	return "http://sc3.wkdzkj.cn/zuul/woke-plugin";
//	return "http://localhost:8085";
}

function ajaxpost(data1, url) {
	var info = '';
	$.ajax({
		contentType: "application/json; charset=utf-8",
		type: "POST",
		url: url,
		data: data1,
		//是否异步
		async: false,
		dataType: "json",
		success: function(msg) {
			if(200 != msg.code) {
				alert(msg.disp)
				return
			} else {
				info = msg;
			}

		},
		error: function() {
			alert("系统错误，请稍后重试");
		}
	})
	return info
}

//获取url中的参数
function getUrlParam(name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
	var r = window.location.search.substr(1).match(reg); //匹配目标参数
	if(r != null) return decodeURI (r[2]);
	return null; //返回参数值
}